package Server;

import java.util.ArrayList;

public class DAOSingletonTest {

	public static void main(String[] args) {
		DataAccess test1 = new DataAccess();
		DataAccess test2 = new DataAccess();

		if (test1.open()) {
			System.out.println("DB connection opened for test1");
		}
		
		if(test2.open()) {
			System.out.println("DB connection opened for test2 (FAIL)");
		}
		
		ArrayList<Integer> al = new ArrayList<Integer>();
		al.add(1); al.add(2);
		
		test1.insert(al);
		
		al = test1.get();
		
		for(Integer i : al) {
			System.out.print(i + ",");
		}
	}

}
